package com.atguigu.springcloud.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.http.HttpStatus;

/**
 * @author lenovo
 * @version 1.0
 * @date 2021/1/15 11:24
 */
public class CustomerBlockHandler {
    public static String handlerException(BlockException e) {
        return HttpStatus.FAILED_DEPENDENCY + " '按客戶自定义, global handlerException----1";
    }

    public static String handlerException2(BlockException e) {
        return HttpStatus.FAILED_DEPENDENCY + " '按客戶自定义, global handlerException----2";
    }
}
